<div class="banner" style="margin-top:50px;">身体机能等级分布概况</div>
<div class="small_banner" style="margin-top: 10px;">心跳频率</div>
<!--身体机能开始-->
<div style="width:100%;height:auto;">
  <div style="width:500px;float:left;height:300px;" id="heartRate_hb"></div>
  <script>
    var num1=parseFloat("<?php echo $data[2]['heartRate'][3]; ?>");
    var num2=parseFloat("<?php echo $data[1]['heartRate'][3]; ?>");
    var num3=parseFloat("<?php echo $data[0]['heartRate'][3]; ?>");
    var num=new Array(parseFloat(num1),parseFloat(num2),parseFloat(num3));
   $('#heartRate_hb').highcharts({
            exporting: {
              enabled:false
            },
      title: {
        text: '心跳频率环比',
        x: -20 //center
      },
      xAxis: {
        categories: ['<?php echo $yeararr[2]-2;?>', '<?php echo $yeararr[2]-1;?>', '<?php echo $yeararr[2];?>']
      },
      yAxis: {
        title: {
            text: '人数 (人)'
        },
        plotLines: [{
          value: 0,
          width: 1,
          color: '#808080'
        }]
      },
      tooltip: {
        valueSuffix: '人'
      },
      legend: {
        layout: 'vertical',
        align: 'right',
        verticalAlign: 'middle',
        borderWidth: 0
      },
      series: [{
        name: '很差',
        data: num
      }]
    });
  </script>
  <div style="width:50%;float:right">
    <table class="table" style="width:500px;border:1px solid #67bd98;" border="1">
    <tr>
      <td height="30" style="text-align:center;">&nbsp;&nbsp;</td>
      <td height="30" style="text-align:center;">2014</td>
      <td style="text-align:center;">2015</td>
      <td style="text-align:center;">2016</td>
    </tr>
    <tr>
      <td height="30" style="text-align:center;">心跳频率</td>
      <td height="30" style="text-align:center;">{$data[2]['heartRate'][3]}人</td>
      <td height="30" style="text-align:center;">{$data[1]['heartRate'][3]}人</td>
      <td height="30" style="text-align:center;">{$data[0]['heartRate'][3]}人</td>
    </tr>
  </table>
  </div>
  <div style="clear:both;"></div>
</div>
<!--心跳频率结束-->